Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import asyncio
  2. import unittest
  3.  
  4.  
  5. class TestCase(unittest.TestCase):
  6.  
  7.     def setUp(self) -> None:
  8.         self.loop = asyncio.get_event_loop()
  9.  
  10.     def test_update(self):
  11.         async def test_update():
  12.             await asyncio.sleep(1)
  13.             self.assertTrue(True)
  14.  
  15.         self.loop.run_until_complete(test_update())
  16.  
  17.  
  18. if __name__ == '__main__':
  19.     unittest.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement