Esempio n. 1
0
    def test_basic_operations(self):
        g = GaugeCell()
        g.set(10)
        self.assertEqual(g.get_cumulative().value, GaugeData(10).value)

        g.set(2)
        self.assertEqual(g.get_cumulative().value, 2)
Esempio n. 2
0
  def test_basic_operations(self):
    g = GaugeCell()
    g.set(10)
    self.assertEqual(g.get_cumulative().value, GaugeData(10).value)

    g.set(2)
    self.assertEqual(g.get_cumulative().value, 2)
Esempio n. 3
0
 def test_integer_only(self):
     g = GaugeCell()
     g.set(3.3)
     self.assertEqual(g.get_cumulative().value, 3)
Esempio n. 4
0
 def test_integer_only(self):
   g = GaugeCell()
   g.set(3.3)
   self.assertEqual(g.get_cumulative().value, 3)