<gh_stars>0
'''Basic simulation unittest'''


import tests
import model.user
from unittest import TestCase


class TestSubmit(TestCase):

    @tests.async_test
    async def test_submit(self):

        await model.user.create('admin', '<PASSWORD>', 'Admin',
            level=model.user.UserLevel.kernel)
        response = await tests.request('/user/login', {
            'mail': 'admin',
            'password': '<PASSWORD>'
        })
        self.assertEqual(response, 'Success')

        response = await tests.request('/problem/update', {})
        self.assertEqual(response, 'Success')

'''Basic simulation unittest'''


import tests
import model.user
from unittest import TestCase


class TestSubmit(TestCase):

    @tests.async_test
    async def test_submit(self):

        await model.user.create('admin', '<PASSWORD>', 'Admin',
            level=model.user.UserLevel.kernel)
        response = await tests.request('/user/login', {
            'mail': 'admin',
            'password': '<PASSWORD>'
        })
        self.assertEqual(response, 'Success')

        response = await tests.request('/problem/update', {})
        self.assertEqual(response, 'Success')
Basic simulation unittest