I actually know someone that has a pair like that...
THey have a red tailed boa and a ball python, both are HUGE. My friend does a rescue and these guys were surrendered to her. They've lived together their whole lives and are around 8-10 years old... Cool Snakes too, both really mellow old guys lol.
Now, that's not a defense, and a ten gallon tank is defenitely too small :s I wouldn't recommend anyone do it but it does seem to work from time to time. *shrugs*