def test_list_users(self): users = _list_users(None, None) self.assertIn({'name': self.test_user_email}, users)
def test_list_users_not_found(self): users = _list_users(self.test_user_name + '42', None) self.assertEqual(len(users), 0)
def test_list_users_with_email(self): users = _list_users(None, self.test_user_email) self.assertIn({'name': self.test_user_email}, users)
def test_list_users_with_username_and_email(self): users = _list_users(self.test_user_name, self.test_user_email) self.assertIn({'name': self.test_user_email}, users)
def test_list_users_with_username(self): users = _list_users(self.test_user_name, None) self.assertIn({'name': self.test_user_email}, users)