Import python modules by their hash.

hello.py 208 B

123456789
  1. def hello(name):
  2. return 'hello %s' % name
  3. import unittest
  4. class Tests(unittest.TestCase):
  5. def test_hello(self):
  6. self.assertEqual(hello('sam'), 'hello sam')
  7. self.assertEqual(hello('bob'), 'hello bob')