Пример #1
0
 def test(i):
     c = LazyLoadsBar()
     with self.assertRaisesRegexp(Exception, r"kablooey!"):
         c.bar()
Пример #2
0
 def test(i):
     c = LazyLoadsBar()
     c.bar(True)
Пример #3
0
 def test(i):
     c = LazyLoadsBar()
     assert c.bar() == 'foo'
Пример #4
0
 def test(i):
     c = LazyLoadsBar()
     with self.assertRaisesRegexp(Exception, r"kablooey!"):
         c.bar()
Пример #5
0
 def test(i):
     c = LazyLoadsBar()
     c.bar(True)
Пример #6
0
 def test(i):
     c = LazyLoadsBar()
     assert c.bar() == 'foo'