SHARE
TWEET

Untitled

a guest Jan 24th, 2020 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top