예제 #1
0
    def test_register_view(self):
        exp = base_exporter.StatsExporter()
        view = mock.Mock()

        with self.assertRaises(NotImplementedError):
            exp.on_register_view(view)
예제 #2
0
    def test_emit(self):
        exp = base_exporter.StatsExporter()
        view_data = []

        with self.assertRaises(NotImplementedError):
            exp.emit(view_data)