# Path: chromabot/utils.py
# def base36decode(number):
# def extract_command(text):
# def forcelist(item):
# def name_to_id(name):
# def now():
# def num_to_team(number, config=None):
# def pairwise(iterable):
# def team_to_num(team):
# def timestr(secs=None):
# def version(config):
# 
# Path: chromabot/parser.py
# def parse(s):
#     result = root.parseString(s)
#     return result[0]


import unittest
from chromabot import utils
from chromabot.commands import *
from chromabot.parser import parse
        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(10, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def testMoveSubreddit(self):
        src = 'lead 10 to /r/hurfendurf'
        parsed = parse(src)

        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(10, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def testMovePlain(self):
        src = "lead 10 to hurfendurf"

        parsed = parse(src)
        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(10, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def test_move_all(self):
        src = "lead all to hurfendurf"
        parsed = parse(src)

        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(-1, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def test_move_implied_all(self):
        src = "lead to hurfendurf"

# Path: chromabot/utils.py
# def base36decode(number):
# def extract_command(text):
# def forcelist(item):
# def name_to_id(name):
# def now():
# def num_to_team(number, config=None):
# def pairwise(iterable):
# def team_to_num(team):
# def timestr(secs=None):
# def version(config):
# 
# Path: chromabot/parser.py
# def parse(s):
#     result = root.parseString(s)
#     return result[0]


# Path: chromabot/tests/parsetest.py
import unittest
from chromabot import utils
from chromabot.commands import *
from chromabot.parser import parse

        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(10, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def testMoveSubreddit(self):
        src = 'lead 10 to /r/hurfendurf'
        parsed = parse(src)

        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(10, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def testMovePlain(self):
        src = "lead 10 to hurfendurf"

        parsed = parse(src)
        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(10, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def test_move_all(self):
        src = "lead all to hurfendurf"
        parsed = parse(src)

        self.assertIsInstance(parsed, MoveCommand)
        self.assertEqual(-1, parsed.amount)
        self.assertEqual(parsed.where[0].destination, "hurfendurf")

    def test_move_implied_all(self):
        src = "lead to hurfendurf"

        parsed = parse(src)