Testing Virtual Field

Thanks for the input all!
I modified it to

test "get_user!/1 returns the user with given id" do
  assert {:ok, user} = Accounts.create_user(@valid_attrs)
  assert user.email == "some email"
  assert user.username == "some username"
  assert user.password == "some password"
end

You are right, I am comparing source data w/ data coming out of (testing) db. I can’t expect them to equal the same.