Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- import unittest
- class TestCase(unittest.TestCase):
- def setUp(self) -> None:
- self.loop = asyncio.get_event_loop()
- def test_update(self):
- async def test_update():
- await asyncio.sleep(1)
- self.assertTrue(True)
- self.loop.run_until_complete(test_update())
- if __name__ == '__main__':
- unittest.main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement