示例#1
0
    def test_handle_missing_some_missing(self, capsys, db):
        crash_ids = [create_new_ooid(), create_new_ooid()]
        crash_ids.sort()
        cmd = Command()
        cmd.handle_missing(TODAY, crash_ids)
        captured = capsys.readouterr()

        assert "Missing: %s" % crash_ids[0] in captured.out
        assert "Missing: %s" % crash_ids[1] in captured.out

        assert crash_ids == list(self.fetch_crashids())
示例#2
0
 def test_handle_missing_none_missing(self, capsys):
     cmd = Command()
     cmd.handle_missing(TODAY, [])
     captured = capsys.readouterr()
     assert ("All crashes for %s were processed." % TODAY) in captured.out