Esempio n. 1
0
class TestStart(unittest.TestCase):
	def setUp(self):
		self.start = StartApp()

	def testPortNumber(self):
		self.assertTrue(self.start.checkPortIsNumber(8888))

	def testNotPortNumber(self):
		self.assertFalse(self.start.checkPortIsNumber('port'))

	def testNumberArgumentsWrong(self):
		self.assertFalse(self.start.checkNumberArguments(4))
		
	def testNumberArgumentOks(self):
		self.assertTrue(self.start.checkNumberArguments(5))
Esempio n. 2
0
class TestStart(unittest.TestCase):
    def setUp(self):
        self.start = StartApp()

    def testPortNumber(self):
        self.assertTrue(self.start.checkPortIsNumber(8888))

    def testNotPortNumber(self):
        self.assertFalse(self.start.checkPortIsNumber('port'))

    def testNumberArgumentsWrong(self):
        self.assertFalse(self.start.checkNumberArguments(4))

    def testNumberArgumentOks(self):
        self.assertTrue(self.start.checkNumberArguments(5))
Esempio n. 3
0
	def setUp(self):
		self.start = StartApp()
Esempio n. 4
0
 def setUp(self):
     self.start = StartApp()