• Home
  • Raw
  • Download

Lines Matching refs:spam

1150         ('a', NS(spam='a')),
1151 ('g', NS(spam='g')),
1161 ('4', NS(spam=4)),
1162 ('15', NS(spam=15)),
1175 ('a b c', NS(spam=['a', ['b', 'c']])),
1507 ('foo', NS(x=None, spam=RFile('foo'))),
1508 ('-x foo bar', NS(x=RFile('foo'), spam=RFile('bar'))),
1509 ('bar -x foo', NS(x=RFile('foo'), spam=RFile('bar'))),
1510 ('-x - -', NS(x=eq_stdin, spam=eq_stdin)),
1511 ('readonly', NS(x=None, spam=RFile('readonly'))),
1547 ('foo', NS(x=None, spam=RFile('foo'))),
1548 ('-x foo bar', NS(x=RFile('foo'), spam=RFile('bar'))),
1549 ('bar -x foo', NS(x=RFile('foo'), spam=RFile('bar'))),
1550 ('-x - -', NS(x=eq_stdin, spam=eq_stdin)),
1586 ('foo', NS(x=None, spam=WFile('foo'))),
1587 ('-x foo bar', NS(x=WFile('foo'), spam=WFile('bar'))),
1588 ('bar -x foo', NS(x=WFile('foo'), spam=WFile('bar'))),
1589 ('-x - -', NS(x=eq_stdout, spam=eq_stdout)),
1601 ('foo', NS(x=None, spam=WFile('foo'))),
1602 ('-x foo bar', NS(x=WFile('foo'), spam=WFile('bar'))),
1603 ('bar -x foo', NS(x=WFile('foo'), spam=WFile('bar'))),
1604 ('-x - -', NS(x=eq_stdout, spam=eq_stdout)),
1635 ('--eggs=42 42', NS(eggs=42, spam=42.0)),
1636 ('--eggs 2j -- -1.5', NS(eggs=2j, spam=-1.5)),
1637 ('1024.675', NS(eggs=None, spam=1024.675)),
1658 ('a -x b', NS(x=MyType('b'), spam=MyType('a'))),
1659 ('-xf g', NS(x=MyType('f'), spam=MyType('g'))),
1680 ('a -x b', NS(x=C('b'), spam=C('a'))),
1681 ('-xf g', NS(x=C('f'), spam=C('g'))),
1720 expected_ns = NS(spam=0.25)
1746 expected_ns.spam = 0.25
1748 expected_ns.spam = 0.625
1750 expected_ns.spam = 0.125
1768 ('-s0.125', NS(spam=0.125, badger=2)),
1769 ('42', NS(spam=0.25, badger=42)),
1770 ('-s 0.625 1', NS(spam=0.625, badger=1)),
1771 ('84 -s2', NS(spam=2.0, badger=84)),
2588 ('--spam', NS(spam=True, badger=True, bladder=None)),
2589 ('--badger', NS(spam=False, badger=False, bladder=None)),
2590 ('--bladder B', NS(spam=False, badger=True, bladder='B')),
2591 ('--spam --spam', NS(spam=True, badger=True, bladder=None)),
2594 ('', NS(spam=False, badger=True, bladder=None)),
2625 ('--foo', NS(foo=True, spam=None, badger='X')),
2626 ('--spam S', NS(foo=False, spam='S', badger='X')),
2627 ('X', NS(foo=False, spam=None, badger=['X'])),
2628 ('X Y Z', NS(foo=False, spam=None, badger=['X', 'Y', 'Z'])),
2631 ('', NS(foo=False, spam=None, badger='X')),
4676 def spam(string): function
4680 parser.add_argument('x', type=spam)
4754 def spam(string_to_convert): function
4759 parser.add_argument('--foo', type=spam, default='bar')
4770 def spam(int_to_convert): function
4775 parser.add_argument('--foo', type=spam, default=0)
4781 def spam(int_to_convert): function
4785 parser.add_argument('--foo', type=spam, default='0')
4851 self.assertEqual(NS(v=3, spam=True, badger="B"), args)
4907 self.assertEqual(NS(badger=['1', '2'], foo=True, spam=None), args)