예제 #1
0
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)
예제 #3
0
def test_hello():
    HW = HelloWorld()
    assert HW.print_hello() == "Hello World"
예제 #4
0
 def requires(self):
     return HelloWorld(date=self.date)
예제 #5
0
 def test_hello_world(self):
     with HelloWorld.from_file('src/fixed_struct.bin') as r:
         self.assertEqual(r.one, 0x50)
예제 #6
0
 def requires(self):
     return HelloWorld()
예제 #7
0
def test_hello_world_with_one_extra_param():
    assert HelloWorld.main("Javier") == "Hello World Javier!"
예제 #8
0
def test_hello_world_no_extra_param():
    assert HelloWorld.main() == "Hello World!"
예제 #9
0
def test_hello_world_with_many_extra_param():
    assert HelloWorld.main("Stephen", "Klay", "Draymond", "Kevin", "DeMarcus")\
        == "Hello World Stephen, Klay, Draymond, Kevin, DeMarcus!"
예제 #10
0
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()