def test_KSpaceTriangular_get_label_dict(self): test_kspace = KSpaceTriangular() self.assertTrue(test_kspace.has_labels()) self.assertEqual( test_kspace.labels(), ['Gamma', 'M', 'K', 'Gamma'], )
def test_KSpaceTriangular_get_label_dict_no_labels(self): test_kspace = KSpaceTriangular() # remove labels: test_kspace.point_labels=[] self.assertFalse(test_kspace.has_labels()) self.assertEqual(test_kspace.labels(), [])