Skip to content

Commit

Permalink
Minimal regression test for #2470.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalex committed Apr 9, 2015
1 parent 7f97ffc commit ade2bc3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python-packages/securesync/tests/crypto_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,17 @@ def test_facility_group_save(self):
group.save()
assert group.zone_fallback is not None, "Centrally created FacilityGroup was not assigned a zone."


class TestHashableFieldsAndSerialization(unittest.TestCase):

def test_description_exclusion_regression_bug_2470(self):

d = Device(name="Test", description="Test")

good_serialization = d._hashable_representation()

g = FacilityGroup()

possibly_bad_serialization = d._hashable_representation()

self.assertEqual(good_serialization, possibly_bad_serialization, "Instatiating a FacilityGroup changed hashable representation of Device")

0 comments on commit ade2bc3

Please sign in to comment.