示例#1
0
class TestRevisionIgnorer(TestCase):
    def setUp(self):
        self.builder = LumpBuilderMock()
        self.ignorer = RevisionIgnorer(self.builder)

    def test_igore_it(self):
        self.ignorer.process_revision(3, None)

        self.assertEqual(len(self.builder.call_history), 1)
        self.assertEqual(self.builder.call_history, [ [ 'revision_header', 3, 'None' ] ])
class TestRevisionIgnorer(TestCase):
    def setUp(self):
        self.builder = LumpBuilderMock()
        self.ignorer = RevisionIgnorer(self.builder)

    def test_igore_it(self):
        self.ignorer.process_revision(3, None)

        self.assertEqual(len(self.builder.call_history), 1)
        self.assertEqual(self.builder.call_history, [['revision_header', 3, 'None']])
 def setUp(self):
     self.builder = LumpBuilderMock()
     self.ignorer = RevisionIgnorer(self.builder)
示例#4
0
 def setUp(self):
     self.builder = LumpBuilderMock()
     self.ignorer = RevisionIgnorer(self.builder)