Пример #1
0
 def test_get_coordinates_after_init(self):
     cluster = clusters.SingleDiamondStation()
     coordinates = cluster.get_xyalpha_coordinates()
     self.assertEqual(coordinates, (0., 0., 0.))
Пример #2
0
 def test_single_station(self):
     cluster = clusters.SingleDiamondStation()
     stations = cluster.stations
     self.assertEqual(len(stations), 1)
     detectors = stations[0].detectors
     self.assertEqual(len(detectors), 4)
Пример #3
0
 def test_init_calls_super_init(self):
     with patch.object(clusters.BaseCluster, '__init__',
                       mocksignature=True) as mock_base_init:
         clusters.SingleDiamondStation()
         self.assertTrue(mock_base_init.called)