예제 #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'