def test_get_by_name_returns_none_if_no_user(self): usr = User.get_by_name('not_a_user') self.assertIsNone(usr)
def test_get_by_name(self): usr = User.get_by_name(self.user_name) self.assertEqual(usr.name, self.user_name)