예제 #1
0
 def test_load_rom(self):
     global rom
     rom = None
     load_rom()
     self.failIf(rom == None)
     rom = RomStr(None)
     load_rom()
     self.failIf(rom == RomStr(None))
예제 #2
0
 def test_not_equal(self):
     "check if RomStr('a') != RomStr('b')"
     self.assertNotEqual(RomStr('a'), RomStr('b'))
예제 #3
0
 def setUp(self):
     if self.sample == None:
         self.__class__.sample = RomStr(self.sample_text)
예제 #4
0
 def test_load_rom(self):
     rom = load_rom()
     self.assertNotEqual(rom, None)
     rom = load_rom()
     self.assertNotEqual(rom, RomStr(None))