| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/sibo-dev/docker-python/main/tests/test_matplotlib.py | [Back] [Original] |
import unittest
import os.path
import matplotlib.pyplot as plt
import numpy as np
class TestMatplotlib(unittest.TestCase):
def test_plot(self):
plt.plot(np.linspace(0,1,50), np.random.rand(50))
plt.savefig("plot1.png")
self.assertTrue(os.path.isfile("plot1.png"))
| Web Proxy Viewer | New URL | Original Page |