def test_query(self):
     q = rainfall_data.rainfall_query("EDEN_8")
     q_s = str(q)
     print "q =", q_s
     self.assertIn("SELECT", q_s)
     self.assertIn("EDEN_8", q_s)
     self.assertIn("DATETIME", q_s)
 def test_query(self):
     q = rainfall_data.rainfall_query("EDEN_8")
     q_s = str(q)
     print "q =", q_s
     self.assertIn("SELECT", q_s)
     self.assertIn("EDEN_8", q_s)
     self.assertIn("DATETIME", q_s)
    def test_funky_gage_name(self):
        gage_name = "MET-1"  # yes it exists
        q = rainfall_data.rainfall_query(gage_name)
        self.assertIn(gage_name, str(q))

        seq = rainfall_data.rainfall_seq(gage_name)

        for t in seq:
            self.assertIsNotNone(t[0])
    def test_funky_gage_name(self):
        gage_name = "MET-1"  # yes it exists
        q = rainfall_data.rainfall_query(gage_name)
        self.assertIn(gage_name, str(q))

        seq = rainfall_data.rainfall_seq(gage_name)

        for t in seq:
            self.assertIsNotNone(t[0])