def test_bar_width(self): bar = ProgressBar() bar.width = 30 self.assertEquals(len(bar.get_bar()), 30)
def test_context_has_correct_bar(self): bar = ProgressBar() context = bar.get_context() self.assertEquals(context['bar'], bar.get_bar())