Exemplo n.º 1
0
 def test_datatype_not_specified(self):
     datatype = 'orange'
     with self.assertRaises(AssertionError):
         BATSESignal(self.burst,
                     datatype=datatype,
                     times=self.times,
                     bgs=self.bgs)
Exemplo n.º 2
0
 def test_datatype_not_string(self):
     datatype = 3.0
     with self.assertRaises(AssertionError):
         BATSESignal(self.burst,
                     datatype=datatype,
                     times=self.times,
                     bgs=self.bgs)
Exemplo n.º 3
0
 def test_burst_type(self):
     burst = "banana"
     with self.assertRaises(ValueError):
         BATSESignal(burst,
                     datatype=self.datatype,
                     times=self.times,
                     bgs=self.bgs)
Exemplo n.º 4
0
 def test_burst_assignment_tte(self):
     burst = 3770
     datatype = 'tte'
     test = BATSESignal(burst,
                        datatype=datatype,
                        times=self.times,
                        bgs=self.bgs)
Exemplo n.º 5
0
 def test_BATSE_not_in_4B_T90_list(self):
     burst = 142  # no T90 for this burst
     with self.assertRaises(Exception):
         BATSESignal(burst, datatype='T90', times=self.times, bgs=self.bgs)
Exemplo n.º 6
0
 def test_BATSE_4B_catalogue(self):
     times = 'T90'
     test = BATSESignal(self.burst,
                        datatype=self.datatype,
                        times=times,
                        bgs=self.bgs)
Exemplo n.º 7
0
 def test_times_assignment(self):
     test = BATSESignal(self.burst,
                        datatype=self.datatype,
                        times=self.times,
                        bgs=self.bgs)
     self.assertEqual(self.times, test.times)
Exemplo n.º 8
0
 def test_burst_assignment(self):
     test = BATSESignal(self.burst,
                        datatype=self.datatype,
                        times=self.times,
                        bgs=self.bgs)