'``Certificates.generate`` generates a certificate authority
certificate, a control service certificate, a user certificate, and the
given number of node certificates.'

@skipUnless(which('flocker-ca'), 'flocker-ca    not    installed    (FLOC-2600)')
def test_generated(self):

    output = FilePath(self.mktemp())
    output.makedirs()
    Certificates.generate(output, 'some-service', 2, 'test-cluster')
    self.assertEqual({output.child('cluster.crt'), output.child('cluster.key'), output.child('control-some-service.crt'), output.child('control-some-service.key'), output.child('user.crt'), output.child('user.key'), output.child('node-0.crt'), output.child('node-0.key'), output.child('node-1.crt'), output.child('node-1.key')}, set(output.children()))
