コード例 #1
0
ファイル: test_entity.py プロジェクト: dkwon253/mycode
 def test_diff_in_subscriptions(self, current, desired):
     print((current, desired))
     assert entity.do_differ(
         dict(subscriptions=current), dict(subscriptions=desired),
     ) is True
コード例 #2
0
ファイル: test_entity.py プロジェクト: dkwon253/mycode
 def test_no_diff_in_subscriptions(self, current, desired):
     assert entity.do_differ(
         dict(subscriptions=current), dict(subscriptions=desired),
     ) is False
コード例 #3
0
ファイル: test_entity.py プロジェクト: dkwon253/mycode
 def test_missing_keys_are_detected(self):
     assert entity.do_differ(
         dict(system=dict(b=2)),
         dict(system=dict(a=2)),
     ) is True
コード例 #4
0
ファイル: test_entity.py プロジェクト: dkwon253/mycode
 def test_actual_changes_are_detected(self):
     assert entity.do_differ(
         dict(system=dict(a=1, b=2)),
         dict(system=dict(a=2)),
     ) is True
コード例 #5
0
ファイル: test_entity.py プロジェクト: dkwon253/mycode
 def test_system_keys_not_in_current_are_ignored(self):
     assert entity.do_differ(
         dict(system=dict(a=1, b=2)),
         dict(system=dict(a=1)),
     ) is False
コード例 #6
0
ファイル: test_entity.py プロジェクト: dkwon253/mycode
 def test_no_system_in_desired(self, current):
     assert entity.do_differ(current, {}) is False