def test_read_json_by_dict_pk(self): user = CRUD(self.session, User).read('{"id": 19}') self.assertEqual(user.one().id, 19)
def test_read_by_dict_pk(self): user = CRUD(self.session, User).read({'id': 19}) self.assertEqual(user.one().id, 19)