def test_return_two_new(self): diff = xform_state_diff(self.two_new) self.assertTrue(diff.fpn0) self.assertEqual(diff.fpn_id0, 'bb8dead3c63cea29')
def test_return_old_new(self): diff = xform_state_diff(self.old_new) self.assertIsInstance(diff, dict) self.assertTrue(diff.old_fpn1) self.assertFalse(diff.new_fpn1)
def test_return_one_new(self): diff = xform_state_diff(self.one_new) self.assertFalse(diff.fpn1)
def test_return_none(self): self.assertIsInstance(xform_state_diff(self.none), dict)