Created
June 14, 2013 18:33
-
-
Save nrh/5784167 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nrh@tinydancer ~/projects/pyrange (master)] nosetests -vxs | |
ok_expando_0 '[1-10]' ... | |
<Expando begin="1" end="10"/> | |
ok | |
ok_expando_1 '[10-1]' ... | |
<Expando begin="10" end="1"/> | |
ok | |
ok_expando_2 '[9999-10000]' ... | |
<Expando begin="9999" end="10000"/> | |
ok | |
ok_expando_3 '[0-1]' ... | |
<Expando begin="0" end="1"/> | |
ok | |
nok_expando_4 '[0-1' ... ok | |
ok_hostname_0 'foo.bar.baz' ... | |
<Hostname> | |
<Part> | |
<StringPart>foo.bar.baz</StringPart> | |
</Part> | |
</Hostname> | |
ok | |
ok_hostname_1 'foo1.bar.baz' ... | |
<Hostname> | |
<Part> | |
<StringPart>foo1.bar.baz</StringPart> | |
</Part> | |
</Hostname> | |
ok | |
ok_hostname_2 '1foo.bar.baz' ... | |
<Hostname> | |
<Part> | |
<StringPart>1foo.bar.baz</StringPart> | |
</Part> | |
</Hostname> | |
ok | |
ok_hostname_3 'foo_bar.baz.com' ... | |
<Hostname> | |
<Part> | |
<StringPart>foo_bar.baz.com</StringPart> | |
</Part> | |
</Hostname> | |
ok | |
ok_hostname_4 'foo-bar.baz.com' ... | |
<Hostname> | |
<Part> | |
<StringPart>foo-bar.baz.com</StringPart> | |
</Part> | |
</Hostname> | |
ok | |
ok_hostname_5 'foo' ... | |
<Hostname> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
</Hostname> | |
ok | |
ok_pattern_0 '/10/' ... | |
<Pattern>/10/</Pattern> | |
ok | |
ok_operator_0 '&' ... | |
<Operator>&</Operator> | |
ok | |
ok_operator_1 '-' ... | |
<Operator>-</Operator> | |
ok | |
nok_operator_2 '%' ... ok | |
ok_rangepart_0 'foo' ... | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
ok | |
ok_rangepart_1 'bar1' ... | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>bar1</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
ok | |
ok_rangepart_2 'foo[1-10]' ... | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
<Part> | |
<Expando begin="1" end="10"/> | |
</Part> | |
</Hostname> | |
</RangePart> | |
ok | |
ok_rangepart_3 '[1-10]foo' ... | |
<RangePart> | |
<Hostname> | |
<Part> | |
<Expando begin="1" end="10"/> | |
</Part> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
ok | |
ok_range_0 'foo,bar' ... | |
<Range> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>bar</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
</Range> | |
ok | |
ok_range_1 'bar1,bar2' ... | |
<Range> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>bar1</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>bar2</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
</Range> | |
ok | |
ok_range_2 'foo[1-10],&/10' ... | |
<Range> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
<Part> | |
<Expando begin="1" end="10"/> | |
</Part> | |
</Hostname> | |
</RangePart> | |
<Operator>&</Operator> | |
<RangePart> | |
<Pattern>/10/</Pattern> | |
</RangePart> | |
</Range> | |
ok | |
ok_range_3 '[1-10]foo,&/10/' ... | |
<Range> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<Expando begin="1" end="10"/> | |
</Part> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
<Operator>&</Operator> | |
<RangePart> | |
<Pattern>/10/</Pattern> | |
</RangePart> | |
</Range> | |
ok | |
ok_range_4 'foo,bar,baz' ... | |
<Range> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>foo</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>bar</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
<RangePart> | |
<Hostname> | |
<Part> | |
<StringPart>baz</StringPart> | |
</Part> | |
</Hostname> | |
</RangePart> | |
</Range> | |
ok | |
ok_range_5 '@foo,&@bar' ... | |
<Range> | |
<RangePart> | |
<Role name="foo"></Role> | |
</RangePart> | |
<Operator>&</Operator> | |
<RangePart> | |
<Role name="bar"></Role> | |
</RangePart> | |
</Range> | |
ok | |
---------------------------------------------------------------------- | |
Ran 25 tests in 0.111s | |
OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment