File: test_tag_uri_scheme.py

package info (click to toggle)
python-pamqp 3.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 708 kB
  • sloc: python: 7,042; makefile: 135; xml: 85; sh: 6
file content (27 lines) | stat: -rw-r--r-- 799 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import unittest

from pamqp import commands

# Tag uri examples from https://en.wikipedia.org/wiki/Tag_URI_scheme
TAG_URIS = [
    'tag:timothy@hpl.hp.com,2001:web/externalHome',
    'tag:sandro@w3.org,2004-05:Sandro',
    'tag:my-ids.com,2001-09-15:TimKindberg:presentations:UBath2004-05-19',
    'tag:blogger.com,1999:blog-555',
    'tag:yaml.org,2002:int#section1'
]


class TagUriScheme(unittest.TestCase):

    def test_tag_uri_scheme_tag1(self):
        commands.Exchange.Declare(exchange=TAG_URIS[0])

    def test_tag_uri_scheme_tag2(self):
        commands.Exchange.Declare(exchange=TAG_URIS[1])

    def test_tag_uri_scheme_tag3(self):
        commands.Exchange.Declare(exchange=TAG_URIS[2])

    def test_tag_uri_scheme_tag4(self):
        commands.Exchange.Declare(exchange=TAG_URIS[3])