Example #1
0
    def test_isset_user(self, user_data):
        user = self.add_user(**user_data)

        isset_user = User.isset_user(**user_data)

        self.assertTrue(isset_user)
        self.assertEqual(isset_user['user_name'], user.name)
        self.assertEqual(isset_user['user_id'], user.id)
Example #2
0
    def test_not_isset_user(self, user_data):
        isset_user = User.isset_user(**user_data)

        self.assertFalse(isset_user)