def test_sample_rate_configuration(self):
     self.assertEqual(self.stopwatch.rate, 1)
     stopwatch = Stopwatch(self.client, "new_watch", rate=0.3)
     self.assertEqual(stopwatch.rate, 0.3)
     with self.assertRaises(AssertionError):
         stopwatch.rate = "not a number"
     with self.assertRaises(AssertionError):
         stopwatch.rate = 2
     with self.assertRaises(AssertionError):
         stopwatch.rate = -0.3
 def test_sample_rate_configuration(self):
     self.assertEqual(self.stopwatch.rate, 1)
     stopwatch = Stopwatch(self.client, "new_watch", rate=0.3)
     self.assertEqual(stopwatch.rate, 0.3)
     with self.assertRaises(AssertionError):
         stopwatch.rate = "not a number"
     with self.assertRaises(AssertionError):
         stopwatch.rate = 2
     with self.assertRaises(AssertionError):
         stopwatch.rate = -0.3