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