Example #1
0
 def test_fetching_works(self):
     bconf = self.backup_config
     self.assertEqual(bconf.name, 'integration')
     self.assertEqual(bconf.agent_id, 187801)
     self.assertEqual(bconf.email, '*****@*****.**')
     self.assertEqual(bconf.notify_on_success, False)
     self.assertEqual(bconf.notify_on_failure, True)
     self.assertEqual(bconf.encrypted, False)
     self.assertEqual(bconf.enabled, True)
     self.assertEqual(bconf.deleted, False)
     self.assertEqual(bconf.schedule, schedule.manually())
     self.assertEqual(bconf.inclusions, set([os.path.realpath('a')]))
     self.assertEqual(bconf.exclusions, set())
 def test_fetching_works(self):
     bconf = self.backup_config
     self.assertEqual(bconf.name, 'integration')
     self.assertEqual(bconf.agent_id, 187801)
     self.assertEqual(bconf.email, '*****@*****.**')
     self.assertEqual(bconf.notify_on_success, False)
     self.assertEqual(bconf.notify_on_failure, True)
     self.assertEqual(bconf.encrypted, False)
     self.assertEqual(bconf.enabled, True)
     self.assertEqual(bconf.deleted, False)
     self.assertEqual(bconf.schedule, schedule.manually())
     self.assertEqual(bconf.inclusions, set([os.path.realpath('a')]))
     self.assertEqual(bconf.exclusions, set())
Example #3
0
 def test_schedule_matches_expected(self):
     self.assertEqual(self.config.schedule, schedule.manually())
Example #4
0
 def test_manual_repr_matches_expected(self):
     sched = schedule.manually()
     self.assertEqual(repr(sched), "<Schedule frequency:Manually weekday:* time:*>")
Example #5
0
 def test_manual_schedule_works(self):
     sched = schedule.manually()
     self._expect(sched, "Manually")
 def test_manual_repr_matches_expected(self):
     sched = schedule.manually()
     self.assertEqual(repr(sched),
                      '<Schedule frequency:Manually weekday:* time:*>')
 def test_manual_schedule_works(self):
     sched = schedule.manually()
     self._expect(sched, 'Manually')
 def test_schedule_matches_expected(self):
     self.assertEqual(self.config.schedule, schedule.manually())