def test_clear_removes_all_managed_algorithms(self): AlgorithmManager.clear() new_size = AlgorithmManager.size() self.assertEquals(0, new_size)
def test_size_reports_number_of_managed_algorithms(self): old_size = AlgorithmManager.size() new_alg = AlgorithmManager.create("ConvertUnits") new_size = AlgorithmManager.size() self.assertTrue(new_size == old_size + 1)
def test_clear_removes_all_managed_algorithms(self): AlgorithmManager.clear() new_size = AlgorithmManager.size() self.assertEquals(0, new_size)
def test_size_reports_number_of_managed_algorithms(self): old_size = AlgorithmManager.size() new_alg = AlgorithmManager.create("ConvertUnits") new_size = AlgorithmManager.size() self.assertTrue(new_size == old_size + 1)
def test_size_reports_number_of_managed_algorithms(self): # no longer deterministically possible to have a correct answer for size # if test are run multi threaded # just check we got an integer back size = AlgorithmManager.size() self.assertTrue(isinstance(size, int))