コード例 #1
0
ファイル: test_ec2.py プロジェクト: pyBookshelf/bookshelf
    def test_ebs_volume_exists_returns_False(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')

        self.assertFalse(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id='fake-volume'))
コード例 #2
0
ファイル: test_ec2.py プロジェクト: ClusterHQ/bookshelf
    def test_ebs_volume_exists_returns_False(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')

        self.assertFalse(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id='fake-volume')
        )
コード例 #3
0
ファイル: test_ec2.py プロジェクト: pyBookshelf/bookshelf
    def test_ebs_volume_exists_returns_True(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')
        volume = conn.create_volume(80, "us-east-1a")

        self.assertTrue(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id=volume.id))
コード例 #4
0
ファイル: test_ec2.py プロジェクト: ClusterHQ/bookshelf
    def test_ebs_volume_exists_returns_True(self, *args, **kwargs):
        conn = boto.connect_ec2('the_key', 'the_secret')
        volume = conn.create_volume(80, "us-east-1a")

        self.assertTrue(
            ec2.ebs_volume_exists(connection=conn,
                                  region='us-west-2',
                                  volume_id=volume.id)
        )