def test_equal_diff_comment(self): toggl, jira = self.create_test_entries_pair() toggl.description = "changed SLUG-333" helper = JiraHelper(None, None, None, False) sync = Synchronizer(None, helper, None, None) self.assertFalse(sync._equal(toggl, jira))
def test_equal_diff_started(self): toggl, jira = self.create_test_entries_pair() toggl.start = "2016-12-25T01:01:01" helper = JiraHelper(None, None, None, False) sync = Synchronizer(None, helper, None, None) self.assertFalse(sync._equal(toggl, jira))
def test_equal_rounding_to_min(self): toggl, jira = self.create_test_entries_pair() toggl.seconds += 30 helper = JiraHelper(None, None, None, False) sync = Synchronizer(None, helper, None, None) self.assertTrue(sync._equal(toggl, jira))
def test_equal_diff_time(self): toggl, jira = self.create_test_entries_pair() toggl.seconds = 120 helper = JiraHelper(None, None, None, False) sync = Synchronizer(None, helper, None, None) self.assertFalse(sync._equal(toggl, jira))
def test_equal_exact(self): toggl, jira = self.create_test_entries_pair() helper = JiraHelper(None, None, None, False) sync = Synchronizer(None, helper, None, None) self.assertTrue(sync._equal(toggl, jira))