class NoLogHandlerTest(unittest.TestCase): def setUp(self): self.test1 = TestModel() self.test1.save() self.logger = NoLogHandler() def test_log_object(self): self.logger.log_object(self.test1, True, HttpRequest(), data1=1, data2=2, data3=3) def test_log_url(self): self.logger.log_url('/visit/%d/' % (self.test1.pk), True, HttpRequest(), data1=1, data2=2, data3=3)
def setUp(self): self.test1 = TestModel() self.test1.save() self.logger = NoLogHandler()