示例#1
0
 def test_genkey_contacts_key_value_pairs_of_filter2(self,
         model_type, filters, expected):
     key = XRefResolver.generate_key(model_type, only_id=False, **filters)
     assert expected == key
示例#2
0
 def test_genkey_startswith_MODELNAME_if_retrieving_entire_model(self,
         model_type, filters, expected):
     key = XRefResolver.generate_key(model_type, only_id=False, **filters)
     assert key.startswith(expected) == True