#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
import json
import unittest
from datetime import timedelta, datetime
import uuid

import pytz


if __name__ == '__main__':
    from test.main import setup_tincan_path

    setup_tincan_path()
from tincan import (
    Statement,
    Agent,
    Group,
    Verb,
    Result,
    Context,
    Attachment,
    SubStatement,
    Activity,
    StatementRef,
)


class StatementTest(unittest.TestCase):
Пример #2
0
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.

import unittest
from datetime import datetime
import pytz

if __name__ == '__main__':
    import sys
    from os.path import dirname, abspath
    sys.path.insert(0, dirname(dirname(dirname(abspath(__file__)))))
    from test.main import setup_tincan_path
    setup_tincan_path()
from tincan import (
    StateDocument,
    Agent,
    Activity,
    ActivityDefinition,
    LanguageMap
)


class StateDocumentTest(unittest.TestCase):

    def setUp(self):
        self.agent = Agent(mbox="mailto:[email protected]")

        self.activity = Activity(