Beispiel #1
0
def fixture_dice():
    """Ficture for dice roll."""
    from commands import dice
    commands = dice.alias()
    message = Message()
    kwargs = dict(user=message.user,
                  channel=message.channel,
                  message=message)
    myroll = dice.roll(**kwargs)
    return commands, myroll
Beispiel #2
0
def test_alias():
    """Test alias functionality."""
    from commands import dice
    commands = dice.alias()
    assert 'roll' in commands