def basic_screens(main_win): '''Initializes a full set of screens''' result = [HelloWorld(main_win), ListSample(main_win), EditSample(main_win), StateSample(main_win), ValidSample(main_win)] return result
def test_hello_world(self): with HelloWorld.from_file('src/fixed_struct.bin') as r: self.assertEqual(r.one, 80)
def test_hello(): HW = HelloWorld() assert HW.print_hello() == "Hello World"
def requires(self): return HelloWorld(date=self.date)
def test_hello_world(self): with HelloWorld.from_file('src/fixed_struct.bin') as r: self.assertEqual(r.one, 0x50)
def requires(self): return HelloWorld()
def test_hello_world_with_one_extra_param(): assert HelloWorld.main("Javier") == "Hello World Javier!"
def test_hello_world_no_extra_param(): assert HelloWorld.main() == "Hello World!"
def test_hello_world_with_many_extra_param(): assert HelloWorld.main("Stephen", "Klay", "Draymond", "Kevin", "DeMarcus")\ == "Hello World Stephen, Klay, Draymond, Kevin, DeMarcus!"
from hello_world import HelloWorld # Configure with argv string argv = '--verbose --log_level info --service_name CatWorld --name Cat' hello_cat = HelloWorld(argv=argv) # Configure with parameters hello_dog = HelloWorld(verbose=True, log_level='info', service_name='DogWorld', name='Dog') hello_cat.run() hello_dog.run()