Ejemplo n.º 1
0
class MannheimTableTestCase(unittest.TestCase):
    def setUp(self):
        sampler = Sampler()
        randomTable = sampler.getRandomTables(1)[0]
        self.table = MannheimTable(randomTable)

    def testTableExist(self):
        table = self.table.getTable()
        self.assertIsInstance(table, numpy.ndarray, msg="getTable() should return numpy.ndarray")
        self.assertGreater(len(table), 0, msg="getTable() should return non empty table")
Ejemplo n.º 2
0
 def setUp(self):
     sampler = Sampler()
     randomTable = sampler.getRandomTables(1)[0]
     self.table = MannheimTable(randomTable)