Ejemplo n.º 1
0
 def test_no_match(self):
     """
     Returns None when no entry matches
     """
     feed = self.parsed_feed(
         ("summary", self.updated1), ("don't care", self.updated2))
     self.assertIsNone(extract_clb_drained_at(feed))
Ejemplo n.º 2
0
 def test_no_match(self):
     """
     Returns None when no entry matches
     """
     feed = self.parsed_feed(("summary", self.updated1),
                             ("don't care", self.updated2))
     self.assertIsNone(extract_clb_drained_at(feed))
Ejemplo n.º 3
0
 def test_created(self):
     """
     Returns time matched from first "Node created" entry found in feeds
     """
     feed = self.parsed_feed(
         ("summary", "2000-10-01Z"), (self.created_summary, self.updated2))
     self.assertEqual(
         extract_clb_drained_at(feed), timestamp_to_epoch(self.updated2))
Ejemplo n.º 4
0
 def test_created(self):
     """
     Returns time matched from first "Node created" entry found in feeds
     """
     feed = self.parsed_feed(("summary", "2000-10-01Z"),
                             (self.created_summary, self.updated2))
     self.assertEqual(extract_clb_drained_at(feed),
                      timestamp_to_epoch(self.updated2))
Ejemplo n.º 5
0
 def test_empty(self):
     """
     Returns None when there are no entries in the feed
     """
     self.assertIsNone(extract_clb_drained_at([]))
Ejemplo n.º 6
0
 def test_empty(self):
     """
     Returns None when there are no entries in the feed
     """
     self.assertIsNone(extract_clb_drained_at([]))