예제 #1
0
 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'],
     )
예제 #2
0
 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(), [])