Ejemplo n.º 1
0
 def test_is_not_ref_diff_class(self):
     mdl = HasherDataModel('hasher1',
                           mother_kennel=self.kennel,
                           hash_name=self.name)
     mdl2 = HasherDataModel('diff',
                            mother_kennel=self.kennel,
                            hash_name=self.name)
     ref = mdl2.to_ref()
     self.assertFalse(ref.is_ref(mdl.to_ref()))
Ejemplo n.º 2
0
 def test_is_ref(self):
     mdl = HasherDataModel('hasher1',
                           mother_kennel=self.kennel,
                           hash_name=self.name)
     ref = mdl.to_ref()
     self.assertTrue(ref.is_ref(mdl))